package com.googlecode.dgwt.client.dojo;


/**
 * @author	Wellington Tadeu dos Santos
 * @since	DGWT v0.01
 */
public class Deferred {
/*
	
	Object[] chain;
	int id = 1; //this._nextId();
	int fired = -1;
	int paused;
	Object[] results = new Object[]{null, null};
	//this.canceller = canceller;
	boolean silentlyCancelled;

	public addCallback()
		//	summary: 
		//		Add a single callback to the end of the callback sequence.
		return this.addCallbacks(dojo.hitch.apply(dojo, arguments)); // dojo.Deferred
	},

	addErrback: function(cb, cbfn){
		//	summary: 
		//		Add a single callback to the end of the callback sequence.
		return this.addCallbacks(null, dojo.hitch.apply(dojo, arguments)); // dojo.Deferred
	},

	addCallbacks: function(cb, eb){
		// summary: 
		//		Add separate callback and errback to the end of the callback
		//		sequence.
		this.chain.push([cb, eb])
		if(this.fired >= 0){
			this._fire();
		}
		return this; // dojo.Deferred
	},

*/}
